package com.rs.admin.sys.pms.controller;


import com.rs.admin.sys.pms.entity.Role;
import com.rs.common.controller.BaseController;
import com.rs.common.utils.result.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 角色表 前端控制器
 * </p>
 *
 * @author hedonglin
 * @since 2017-12-20
 */
@RestController
@RequestMapping("/tests")
public class RoleController extends BaseController {

    @GetMapping("")
    public R findById() {
        Role role = new Role();
        role = role.selectById(1L);
        return R.ok().put("role",role);
    }
}

